$(function(){
    $("#searchContactsList_dategrid").datagrid_init;
    /*==初始化表格*/
    $('#searchContactsList_dategrid').datagrid({
        loadMsg : "数据加载中",
        border:false,
        fit : true,
        title : "通讯录管理",
        fitColumns : true,
        pagination : true,
        emptyMsg : "数据加载完成,当前无数据!",
        rownumbers : true,
        singleSelect : true,
        toolbar:"#searchContactsList_dategrid_toolbar",
        columns : [ [
            // {field : 'id',				title : '主键',			width:50 , align:'center',hidden:true},
            {field:	 'checked',checkbox:true},
            {field : '1',		    title : '姓名',			    width:50 , align:'center',hidden:false},
            {field : '5',			title : '所属单位',			width:50 , align:'center',hidden:false},
            {field : '6',			title : '所属部门',			width:50 , align:'center',hidden:false},
            {field : '7',			title : '工作岗位',			width:50 , align:'center',hidden:false},
            {field : '7',			title : '手机号码1',			width:50 , align:'center',hidden:false},
            {field : '8',			title : '手机号码2',			width:50 , align:'center',hidden:false},
            {field : '9',			title : '办公电话',			width:50 , align:'center',hidden:false}
        ] ],
        onLoadSuccess:function(data){
            $(this).datagrid('doCellTip',{'max-width':'300px','delay':500});
        }
    });

    // var params = {};
    // $("#searchContactsList_dategrid").datagrid_pagination(basepath+"/user/v1/selectRecordList",JSON.stringify(params),"","" );

    /*查询按钮*/
    /*$("#searchContactsList_btn_search").linkbutton({
        onClick:function(){
            var name = $("#searchContactsList_Name").textbox("getValue");
            var datebegin=$.trim($("#searchContactsList_DateBegin").datetimebox('getValue'));
            var dateend=$.trim($("#searchContactsList_DateEnd").datetimebox('getValue'));
            var params = {};
            params.name = name;
            params.datebegin = datebegin;
            params.dateend = dateend;
            $("#searchContactsList_dategrid").datagrid_pagination(basepath+"/user/v1/selectRecordList",JSON.stringify(params),"","" );
        }
    });*/

});
	